<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
														<!--<div class="form-group">
								<label class="col-sm-3 control-label">：</label>
								<div class="col-sm-8">
									<input id="columnId" name="columnId" class="form-control" type="text">
								</div>
							</div>-->
														<div class="form-group">	
								<label class="col-sm-3 control-label">标题：</label>
								<div class="col-sm-8">
									<input id="title" required lay-verify="required" name="title" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">关键词：</label>
								<div class="col-sm-8">
									<input id="keyword" required lay-verify="required" name="keyword" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">分类：</label>
								<div class="col-sm-8">
									<select name="newsCategoryId" id="newsCategoryId" class="form-control" required lay-verify="required">
										<option name="newsCategoryId" th:each="itme:${list}" th:value="${itme.newsCategoryId}" th:text="${itme.title}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">标题图：</label>
								<div class="col-sm-8">
									<input id="titlePhoto" accept="image/jpeg,image/jpg,image/png,image/svg" class="form-control" type="file" onchange="fileUpload('titlePhoto', 10)">
									<input name="titlePhoto" lay-verify="required" class="form-control" type="hidden">
									<img id="showtitlePhoto" style="margin-top: 10px;width: 200px;height: auto;"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">轮播图：</label>
								<div class="col-sm-8">
									<input id="carouselPhoto" accept="image/jpeg,image/jpg,image/png,image/svg" class="form-control" type="file" onchange="fileUpload('carouselPhoto', 10)">
									<input name="carouselPhoto" class="form-control" type="hidden">
									<img id="showcarouselPhoto" style="margin-top: 10px;width: 200px;height: auto;"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">banner图：</label>
								<div class="col-sm-8">
									<input id="bannerPhoto" accept="image/jpeg,image/jpg,image/png,image/svg" class="form-control" type="file" onchange="fileUpload('bannerPhoto', 9)">
									<input name="bannerPhoto" class="form-control" type="hidden">
									<img id="showbannerPhoto" style="margin-top: 10px;width: 200px;height: auto;"/>
								</div>
							</div>
							<div class="form-group">
								<input id="content" name="content" type="hidden"> <label
									class="col-sm-3 control-label">内容：</label>
								<div class="col-sm-8">
									<div class="ibox-content no-padding">
										<div id="content_sn" class="summernote"></div>
									</div>
								</div>
							</div>
<!--							<div class="form-group">-->
<!--								<label class="col-sm-3 control-label">内容：</label>-->
<!--								<div class="col-sm-8">-->
<!--									<div class="ibox-content no-padding">-->
<!--										<textarea name="content" required lay-verify="required" style="height: 200px; width: 100%"></textarea>-->
<!--									</div>-->
<!--								</div>-->
<!--							</div>-->
							<div class="form-group" >
								<label class="col-sm-3 control-label" >是否banner新闻:</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input type="radio" required lay-verify="otherReq" name="bannerFlag" value="1" /> 是
									</label>
									<label class="radio-inline">
										<input type="radio" required lay-verify="otherReq" name="bannerFlag" value="0" /> 否
									</label>
								</div>
							</div>
							<div class="form-group" >
								<label class="col-sm-3 control-label" >是否轮播:</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input type="radio" required lay-verify="otherReq" name="carouselFlag" value="1" /> 是
									</label>
									<label class="radio-inline">
										<input type="radio" required lay-verify="otherReq" name="carouselFlag" value="0" /> 否
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">是否推荐:</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input type="radio" required lay-verify="otherReq" name="recommendFlag" value="1" /> 是
									</label>
									<label class="radio-inline">
										<input type="radio" required lay-verify="otherReq" name="recommendFlag" value="0" /> 否
									</label>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/system/dlNews/add.js">
	</script>
</body>
</html>
